package com.dreamlin.app

import android.animation.Animator
import android.view.View
import com.dreamlin.app.base.ui.NoVMActivity
import kotlinx.android.synthetic.main.activity_startup.*


class MainActivity : NoVMActivity() {

    override val layout: Int
        get() = R.layout.activity_startup

    override fun initViews() {
       iv_logo.animate().scaleX(2.0f).scaleY(2.0f)
           .alpha(1.0f)
           .setDuration(2000)
           .setListener(object : Animator.AnimatorListener {
               override fun onAnimationRepeat(animation: Animator?) {

               }

               override fun onAnimationEnd(animation: Animator?) {
                   //TODO jump main
//                   finish()
               }

               override fun onAnimationCancel(animation: Animator?) {

               }

               override fun onAnimationStart(animation: Animator?) {

               }
           }).start()
    }

    override fun click(view: View) {
        
    }

    override fun initData() {

    }

}
